package com.happe.foodeasy.system.service.impl;

import com.happe.foodeasy.dao.ImageTargetPositionDao;
import com.happe.foodeasy.system.entity.ImageTargetPosition;
import com.happe.foodeasy.system.service.ImageTargetPositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ImageTargetPositionServiceImpl implements ImageTargetPositionService {
    private ImageTargetPositionDao imageTargetPositionDao;
    @Override
    public ImageTargetPosition retrieveImageTargetPositionByName(String imageTargetPositionName, String indexCarousel) {
        return imageTargetPositionDao.findOneByProperties(imageTargetPositionName,indexCarousel);
    }

    @Autowired
    public void setImageTargetPositionDao(ImageTargetPositionDao imageTargetPositionDao) {
        this.imageTargetPositionDao = imageTargetPositionDao;
    }
}
